package edu.umd.clip.lm.nbest;

import java.text.*;
/**
 * @author Denis Filimonov <den@cs.umd.edu>
 *
 */
public abstract class NbestFormat {
	public static class NbestFormatData {
		protected double lmScore;
		protected String sentence;		

		public NbestFormatData(double lmScore, String sentence) {
			super();
			this.lmScore = lmScore;
			this.sentence = sentence;
		}

		public double getLmScore() {
			return lmScore;
		}

		public void setLmScore(double lmScore) {
			this.lmScore = lmScore;
		}

		public String getSentence() {
			return sentence;
		}

		public void setSentence(String sentence) {
			this.sentence = sentence;
		}
	}
	
	public NbestFormat(){
	}
	
	abstract public NbestFormatData parse(String input) throws ParseException;

		
	abstract public String toString(NbestFormatData data);
	
	public String makeHeader() {
		return "";
	}
}
